/*
 * DataGamePlayer.java
 *
 * Created on 14 ?????? 2007, 17:26
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package DataFiles;

/**
 * This class keeps all data of a specific game of a specific player.
 * @author Yotam & Shai
 */
public class DataGamePlayer {
    private int gameNum;
    private String dateOfStart;
    private String dateOffinish;
    private boolean lost;
    
    /**
	 * Creates a new instance of DataGamePlayer
	 * @param _dateOffinish Game's date of finish
	 * @param _dateOfStart Game's date of start
	 * @param _gameNum Game's serial number 
	 */
    public DataGamePlayer(String _dateOffinish, String _dateOfStart,int _gameNum) {
        dateOfStart = _dateOfStart;
        dateOffinish =_dateOffinish;
        gameNum = _gameNum;
    }
    public DataGamePlayer(String _dateOfStart) {
        dateOfStart = _dateOfStart;
        dateOffinish = "";
        gameNum = 0;
        lost = false;
    }

    public int getGameNum() {
        return gameNum;
    }

    public void setGameNum(int gameNum) {
        this.gameNum = gameNum;
    }

    public String getDateOfStart() {
        return dateOfStart;
    }

    public void setDateOfStart(String dateOfStart) {
        this.dateOfStart = dateOfStart;
    }

    public String getDateOffinish() {
        return dateOffinish;
    }

    public void setDateOffinish(String dateOffinish) {
        this.dateOffinish = dateOffinish;
    }
    public boolean getLost(){
        return lost;
    }
    public void setLost(boolean lost){
        this.lost = lost;
    }
}
